﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Configuration;


namespace Database {
    class sqlConnection {
        public SqlConnection connection;
        public SqlConnection GetConnect()
        {
            connection = new SqlConnection(ConfigurationManager.ConnectionStrings["maytinhxachtayConnectionString"].ConnectionString);             
            connection.Open();           
            return connection;
        }

        public void CloseConnect()
        {
            connection.Close();
        }
    }
}
